package com.ruoyi.store.mapper;

import com.ruoyi.store.domain.StuHisExam;
import com.ruoyi.store.domain.StuUserAnswer;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StuUserAnswerMapper {
    int insertStuExamHistory(StuUserAnswer stuUserAnswer);

    List<StuUserAnswer> selectStuHisPaperByUserId(@Param(value = "userId") Long userId, @Param(value = "paperId") Long paperId);

    int updateStuExamHistory(StuUserAnswer stuUserAnswer);

    List<StuUserAnswer> selectStuHisPaper(@Param(value = "userId") Long userId, @Param(value = "paperId") Long paperId);
}
